package com.hades.example.java.refactoring.after.c11.c11_11_replace_inheritance_with_delegation;

public class Example {
    public static void main(String[] args) {
        MyStack<String> stack = new MyStack<>();
        stack.push("A");
        stack.push("B");
        stack.push("C");

        System.out.println(stack.isEmpty());
        System.out.println(stack.size());
        System.out.println(stack.pop());
        System.out.println(stack.size());
    }
}
